/* eslint-disable @typescript-eslint/no-require-imports */
console.log("在浏览器端 type = text/javascript 环境里使用 sfx-utils");
console.log("需要 require.js 模块支持");
console.log("");

// 配置 require (amd, umd 可以在浏览器端使用)
require.config({
    baseUrl: "mylibs",
    paths: {
        amd: "index.amd",
        umd: "index.umd",
    },
});

//
// require(["./mylibs/index.amd.js"], (sfxUils) => test_color(sfxUils));
require(["amd", "umd"], (amd, umd) => {
    test_amd(amd);
    test_umd(umd);
});

function test_amd(amd) {
    console.log(`amd.createGuid() = ${amd.createGuid()}`);
}

function test_umd(umd) {
    console.log(`umd.createGuid() = ${umd.createGuid()}`);
}
